package org.example.entity;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.Date;

/**
 * @author : jiangyaru
 * @date : 2024/3/25 16:09
 * @modyified by :
 */
@Data
@ApiModel(value = "OperateLog对象", description = "系统管理-操作日志记录")
public class OperateLog {

    @ApiModelProperty("模块标题")
    private String title;

    @ApiModelProperty("业务类型（0查询 1新增 2修改 3删除 4其他）")
    private Integer businessType;
    @ApiModelProperty("浏览器类型")
    private String browser;

    @ApiModelProperty("方法名称")
    private String method;

    @ApiModelProperty("响应时间")
    private Long respTime;

    @ApiModelProperty("请求开始时间")
    private String startTime;
    private Date timeHour;
    private Date timeMinutes;

    @ApiModelProperty("请求结束时间")
    private String endTime;

    @ApiModelProperty("请求方式")
    private String requestMethod;

    @ApiModelProperty("请求URL")
    private String operateUrl;

    @ApiModelProperty("主机地址")
    private String operateIp;

    @ApiModelProperty("操作地点")
    private String operateLocation;

    @ApiModelProperty("请求参数")
    private String operateParam;

    @ApiModelProperty("返回参数量大小")
    private Double resultKB;

    @ApiModelProperty("操作状态（0正常 1异常）")
    private Integer status;

    @ApiModelProperty("错误消息")
    private String errorMsg;
}
